From 381ea980c87793d04005908d2ac08609ded68982 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Sun, 15 Nov 2020 11:36:56 +0200 Subject: [PATCH] Link with libatomic on archtectures that need it --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index ebf1a3d97..28d8f8e4a 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,11 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export JAVA_HOME=/usr/lib/jvm/default-java +ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mips mipsel powerpc sh4)) + export DEB_CXXFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed + export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + %: dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --with python3 --with javahelper -- 2.30.2